﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WpfApplication1.Class.Bean
{
    public class ClassBug : BaseObject<ClassBug>
    {

        public const string ETAT_OUVERT = "ouvert";
        public const string ETAT_FERME = "ferme";
        public const string ETAT_ATTENTE = "attente";

        public const string TYPE_DEVELOPPEMENT = "developpement";
        public const string TYPE_DEMANDE_EVOLUTION = "demande evolution";
        public const string TYPE_DEMANDE_CORRECTION = "demande correction";

        public const string PRIORITE_HAUTE = "priorite haute";
        public const string PRIORITE_MOY = "priorité moyenne";
        public const string PRIORITE_BASSE = "priorité basse";
        

        
        private string nom;
        private DateTime dateEmission;
        private DateTime dateResolution;
        private DateTime dateFermeture;
        private string etat;
        private string type;
        private string priorite;
        private long idProjet;
        private long idEmmeteur;
        private long idResponsable;
        private string environnement;

        public string Environnement
        {
            get { return environnement; }
            set { environnement = value; }
        }

        public long IdResponsable
        {
            get { return idResponsable; }
            set { idResponsable = value; }
        }
        

        #region construc
        public ClassBug()
        {
            this.Id = 0;
            this.nom = "";
            this.dateEmission = DateTime.Now;
            this.dateResolution = new DateTime(1950, 1, 1);
            this.DateFermeture = new DateTime(1950, 1, 1);
            this.Etat = ClassBug.ETAT_OUVERT;
            this.IdEmmeteur = 0;
            this.IdProjet = 0;
            this.IdResponsable = 0;
        }

        

        public long IdEmmeteur
        {
            get { return idEmmeteur; }
            set { idEmmeteur = value; }
        }

        public long IdProjet
        {
            get { return idProjet; }
            set { idProjet = value; }
        }
        public string Priorite
        {
            get { return priorite; }
            set { priorite = value; }
        }
        public string Type
        {
            get { return type; }
            set { type = value; }
        }
        public string Etat
        {
            get { return etat; }
            set { etat = value; }
        }

        public DateTime DateFermeture
        {
            get { return dateFermeture; }
            set { dateFermeture = value; }
        }

        public DateTime DateResolution
        {
            get { return dateResolution; }
            set { dateResolution = value; }
        }
        public DateTime DateEmission
        {
            get { return dateEmission; }
            set { dateEmission = value; }
        }

        public string Nom
        {
            get { return nom; }
            set { nom = value; }
        }

        

        #endregion
       
                    
        

    }
}
